// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * PositionInventory
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "position_inventory", autoResultMap = true)
@Schema(title = "仓位库存")
public class PositionInventory implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 仓位
   */
  @TableField(value = "`position`")
  @JoinField(WarehouseBin.class)
  @Schema(title = "仓位")
  private Long position;

  /**
   * 仓位类型
   */
  @TableField(value = "`type`")
  @Schema(title = "仓位类型")
  private String type;

  /**
   * 仓库
   */
  @TableField(value = "`warehouse`")
  @JoinField(Warehouse.class)
  @Schema(title = "仓库")
  private Long warehouse;

  /**
   * 图片
   */
  @TableField(value = "`img`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "图片")
  private List<SysFile> img;

  /**
   * 款名
   */
  @TableField(value = "`tn`")
  @Schema(title = "款名")
  private String tn;

  /**
   * SPU
   */
  @TableField(value = "`spu`")
  @JoinField(Product.class)
  @Schema(title = "SPU")
  private Long spu;

  /**
   * 品名
   */
  @TableField(value = "`trade_name`")
  @JoinField(Product.class)
  @Schema(title = "品名")
  private Long tradeName;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * MSKU
   */
  @TableField(value = "`msku`")
  @Schema(title = "MSKU")
  private String msku;

  /**
   * FNSKU
   */
  @TableField(value = "`fnsku`")
  @Schema(title = "FNSKU")
  private String fnsku;

  /**
   * 属性
   */
  @TableField(value = "`attribute`")
  @Schema(title = "属性")
  private String attribute;

  /**
   * 店铺
   */
  @TableField(value = "`shop`")
  @Schema(title = "店铺")
  private String shop;

  /**
   * 未锁定量
   */
  @TableField(value = "`unlock_num`")
  @Schema(title = "未锁定量")
  private Integer unlockNum;

  /**
   * 锁定量
   */
  @TableField(value = "`lock_num`")
  @Schema(title = "锁定量")
  private Integer lockNum;

  /**
   * 总量
   */
  @TableField(value = "`total_num`")
  @Schema(title = "总量")
  private Integer totalNum;
}
